package try_java;

public class EmployeeTest {
    public static void main (String [] args) {
        Employee [] staff = new Employee[3];
//        staff[0] = new Employee("Amy Zou", 75000, 1987, 12, 15);
//        staff[1] = new Employee("Kevin Chou", 50000, 1989, 10, 1);
//        staff[2] = new Employee("Tony Chen", 40000, 1990, 3, 1);
        staff[0] = new Employee("Amy Zou", 75000, 1987, 12, 15);
        staff[1] = new Employee("Kevin Chou", 50000);
        staff[2] = new Employee(40000);
        
        for (Employee e : staff){
            e.raiseSalary(5);
//            e.setId();
        }
        
        for (Employee e : staff){
            System.out.printf("Name: %-10s, Salary: %.2f, ID: %-4d, Data: %s\n", e.getName(), e.getSalary(), e.getId(), e.getHireDay().toString());
//            System.out.printf("Name: %11s, Salary: %.2f\n", e.getName(), e.getSalary());
        }
        int nextid = Employee.getNextId();
        System.out.printf("next id is %d\n", nextid);
    }
}
